package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * 根据momentid来查询订单状态
 * Created by xiachao
 */

public class GetOrderDetailByMomentidRequest {
    String momentId;
    int version;


    private GetOrderDetailByMomentidRequest(Builder builder) {
        momentId = builder.momentId;
        version = builder.version;

    }

    public static Builder newBuilder() {
        return new Builder();
    }


    public static final class Builder {
        private String momentId;
        private int version;



        private Builder() {
        }

        public Builder momentId(String momentId) {
            this.momentId = momentId;
            return this;
        }

        public Builder version(int version) {
            this.version = version;
            return this;
        }



        public Call<ResponseBody> build() {
            return ApiManager.getService().orderVerify(momentId,version);
        }
    }

}
